<template>
  <div>
    <div>
      <!-- part1开始 -->
      <div class="part wrap">
        <!-- 资讯 -->
        <div class="information-box">
          <div class="tab-change">
            <div class="fl">
              <div
                :class="{ active: tabChangeIndex == 1 }"
                @click="tabChangeIndex = 1"
              >
                通知公告
              </div>
              <div
                :class="{ active: tabChangeIndex == 2 }"
                @click="tabChangeIndex = 2"
              >
                资讯信息
              </div>
              <div
                :class="{ active: tabChangeIndex == 3 }"
                @click="tabChangeIndex = 3"
              >
                政策文件
              </div>
            </div>
            <span class="more">更多</span>
          </div>
          <ul class="information-list">
            <li>
              <span
                >测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本</span
              >
              <span>2021-03-12</span>
            </li>
          </ul>
        </div>
        <!-- 学习入口 -->
        <div class="enter-box">
          <img class="enter-item" :src="require('@/assets/logo.png')" alt="" />
          <img class="enter-item" :src="require('@/assets/logo.png')" alt="" />
        </div>
      </div>
      <!-- part1结束 -->

      <!-- 课程展示开始 -->
      <div class="course-box mt40 wrap">
        <Title title="课程展示"></Title>
        <div class="top"></div>
        <div class="course-list">
          <div class="course-item" v-for="item in 6" :key="item">
            <img class="img" :src="require('@/assets/logo.png')" alt="" />
            <div class="course-text">
              <h1>测试</h1>
              <div class="course-text-b">
                <sapn>讲师：测试人员</sapn>
                <sapn>学时：20学时</sapn>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- 课程展示结束 -->

      <!-- 专家团队开始 -->
      <div class="teacher-box mt40">
        <div class="wrap">
          <Title title="专家团队"></Title>
        </div>

        <div class="teacher-swiper">
          <div class="swiper-container">
            <div class="swiper-wrapper">
              <div
                class="swiper-slide"
                v-for="item in teacherList"
                :key="item.id"
              >
                <router-link :to="item.link">
                  <p class="tc">
                    <img :src="item.userImg" width="136" height="136" />
                  </p>
                  <h1 class="tc">{{ item.name }}</h1>
                  <h3 class="tc f12"></h3>
                  <div class="text oh">
                    <h1>师资介绍</h1>
                    <p>
                      {{ item.introduction }}
                    </p>
                  </div>
                </router-link>
              </div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>

            <!-- 如果需要导航按钮 -->
            <div class="swiper-button-prev swiper-button-prevsp"></div>
            <div class="swiper-button-next swiper-button-nextsp"></div>

            <!-- 如果需要滚动条 -->
            <div class="swiper-scrollbar"></div>
          </div>
        </div>
      </div>
      <!-- 专家团队结束 -->
      <!-- 合作公示开始 -->
      <div class="link-box mt40 wrap">
        <Title title="合作公示"></Title>
        <div class="title-box"></div>
        <div class="link-list">
          <div class="link-item">
            <img class="img" :src="require('@/assets/logo.png')" alt="" />
          </div>
          <div class="link-item">
            <img class="img" :src="require('@/assets/logo.png')" alt="" />
          </div>
          <div class="link-item">
            <img class="img" :src="require('@/assets/logo.png')" alt="" />
          </div>
        </div>
      </div>
      <!-- 合作公示结束 -->
    </div>
  </div>
</template>

<script>
import Title from "@/views/components/index/indexTitle.vue";
import Swiper from "swiper";
export default {
  components: {
    Title,
  },
  mounted() {
    new Swiper(".swiper-container", {
      slidesPerView: 4,
      spaceBetween: 30,
      loop: true,
      // 如果需要分页器
      pagination: ".swiper-pagination",
      // 如果需要前进后退按钮
      nextButton: ".swiper-button-nextsp",
      prevButton: ".swiper-button-prevsp",
      // 如果需要滚动条
      scrollbar: ".swiper-scrollbar",
    });
  },
  data() {
    return {
      tabChangeIndex: "1",
      teacherList: [
        {
          id: 0,
          name: "马小军",
          userImg:
            "http://peixun.cefatc.org.cn/statics/uploadfile/2021/1214/20211214012712880.jpg",
          introduction:
            "马小军，中国艺术职业教育学会社会艺术教育工作委员会主任",
          link: "",
        },
        {
          id: 1,
          name: "马小军",
          userImg:
            "http://peixun.cefatc.org.cn/statics/uploadfile/2021/1214/20211214012712880.jpg",
          introduction:
            "马小军，中国艺术职业教育学会社会艺术教育工作委员会主任",
          link: "",
        },
        {
          id: 2,
          name: "马小军",
          userImg:
            "http://peixun.cefatc.org.cn/statics/uploadfile/2021/1214/20211214012712880.jpg",
          introduction:
            "马小军，中国艺术职业教育学会社会艺术教育工作委员会主任",
          link: "",
        },
        {
          id: 3,
          name: "马小军",
          userImg:
            "http://peixun.cefatc.org.cn/statics/uploadfile/2021/1214/20211214012712880.jpg",
          introduction:
            "马小军，中国艺术职业教育学会社会艺术教育工作委员会主任",
          link: "",
        },
        {
          id: 4,
          name: "马小军",
          userImg:
            "http://peixun.cefatc.org.cn/statics/uploadfile/2021/1214/20211214012712880.jpg",
          introduction:
            "马小军，中国艺术职业教育学会社会艺术教育工作委员会主任",
          link: "",
        },
        {
          id: 5,
          name: "马小军",
          userImg:
            "http://peixun.cefatc.org.cn/statics/uploadfile/2021/1214/20211214012712880.jpg",
          introduction:
            "马小军，中国艺术职业教育学会社会艺术教育工作委员会主任",
          link: "",
        },
      ],
    };
  },
  created() {},
};
</script>

<style scoped>
@import "../assets/index.css";
.part {
  width: 80%;
}
.teacher-swiper {
  width: 100vw;
  background: url("~@/assets/images/index/teacherbg.png") no-repeat center
    center;
  background-size: 100%;
  margin-top: 15px;
  margin-bottom: 40px;
}
.teacher-swiper .swiper-container {
  width: 1200px;
  overflow: hidden;
  margin: 0 auto;
  padding-top: 25px;
  padding-bottom: 25px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}
.teacher-swiper a {
  background: url("~@/assets/images/index/teacherline.png") no-repeat center
    #eee;
  background-size: 100%;
  width: 271px;
  border: 2px solid #dcdcdc;
  border-radius: 10px;
  margin: 0 12px;
  transition: all 0.3s;
  display: block;
  padding-bottom: 30px;
}
.teacher-swiper p img {
  border-radius: 50%;
  border: 3px solid #bb2d2d;
  margin-top: 15px;
}
.teacher-swiper h1 {
  font-size: 18px;
  font-family: "Lantinghei SC";
  font-weight: 600;
  color: #010100;
  margin: 18px 0 10px;
}
.teacher-swiper h3 {
  color: #494949;
}
.teacher-swiper .text {
  width: 271px;
  height: 100px;
  background: #ac8b6c;
  margin-top: 15px;
}
.teacher-swiper .text h1 {
  padding-left: 18px;
  background: url("~@/assets/images/index/jtwhite.png") no-repeat left center;
  font-size: 14px;
  font-family: "Lantinghei SC";
  font-weight: 600;
  color: #fff;
  margin: 13px 10px 3px;
}
.teacher-swiper .text p {
  width: 228px;
  font-size: 10px;
  font-family: "Lantinghei SC";
  color: #fff;
  margin: 0 auto;
  line-height: 18px;
}
.teacher-swiper a:hover .text {
  background: #bb2d2d;
}
.teacher-swiper .swiper-button-nextsp,
.teacher-swiper .swiper-button-prevsp {
  position: absolute;
  width: 40px;
  height: 40px;
  display: inline-block;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}
.teacher-swiper .swiper-button-prevsp {
  background: url("~@/assets/images/index/pageleft.png") no-repeat center center;
  left: -54px;
  top: 199px;
}
.teacher-swiper .swiper-button-prevsp:hover {
  background: url("~@/assets/images/index/leftCur.png") no-repeat center center;
}
.teacher-swiper .swiper-button-nextsp {
  background: url("~@/assets/images/index/pageright.png") no-repeat center
    center;
  right: -54px;
  top: 199px;
}
.teacher-swiper .swiper-button-nextsp:hover {
  background: url("~@/assets/images/index/rightCur.png") no-repeat center center;
}
</style>
